# import mitmproxy.http
# from mitmproxy import ctx
#
#
# def request(flow: mitmproxy.http.HTTPFlow):
#     ctx.log.info("拦截到请求啦")
#     ctx.log.info(f"请求头信息:{flow.request.headers}")
#     headers = flow.request.headers
#     headers['user-agent'] = "new-user-agent"
#     ctx.log.info(f"修改后的请求头信息:{flow.request.headers}")
